package kuang;

/**
 * @author cyt
 * @create 2020-03-06 21:00
 */
public class ThreadTest01 extends Thread {
    @Override
    public void run() {
        // run方法线程体
        for (int i = 0; i < 1000 ; i++) {
            System.out.println("看电视" + i);
        }
    }
    public static void main(String[] args) {
        ThreadTest01 thread = new ThreadTest01();
        thread.start();
        for (int i = 0; i < 20; i++) {
            System.out.println("CYT写代码：" + i);
        }
    }
}
